
import ajax from './index'
import {setCache} from './cache'

// 获取城市id
export const getRegionId = (params) => ajax.post('search/city/getRegionId', params)

// 获取所有城市列表
// export const getCityList = () => ajax.post('search/city/getAll')
export const getCityList = (params, callback) => setCache('search/city/getAll', params, callback, 'post', true)

// 关键字查询城市
export const searchCity = (params) => ajax.post('search/city/keyword', params)

// 出发城市
export const departCities = (params, header) => ajax.post('search/city/departCities', params, { header })
